<!--{template header}--><!--step1会出现在弹窗里，交稿--> 
{if $step==1}
 <!-- step1 跳转 -->
<div class="winbody pad10 box {$_K['theme']}_style">
 	<!-- 选择分享到哪里 -->
 	<!-- 步骤提示 -->
 		
                <!--step步骤 start-->
                <div class="step_progress min_step_progress clearfix">
                    <div class="step step1 selected">
                        <span class="icon32">step1</span>
                        <strong>{$_lang['first_step']}</strong>
                        	{$_lang['choose_and_login_weibo']}
                    </div>
                    <div class="step step2">
                        <span class="icon32">step2</span>
                        <strong>{$_lang['second_step']}</strong>
                        <em>{$_lang['input_info']}</em>
                    </div>
                    <div class="step step3">
                        <span class="icon32">step3</span>
                        <strong>{$_lang['third_step']}</strong>
                        <em>{$_lang['pub_and_submit']}</em>
                    </div>
                </div>
                <!--step步骤 end-->
    <div class="selecter clearfix min_win">      
		<ul>
	 		<li >
			{loop $plat $value}
	 			
					<a href="{$basic_url}?do={$do}&task_id={$task_id}&op=work_hand&platform={$value}&step=2" style="text-decoration:none;">
		 				<img src="static/img/ico/ico_48x48_{$value}.gif" alt="{$web_arr[$v]['name']}" />
		 				{$web_arr[$value]['name']}
		 			</a>
	 		{/loop}
			</li>
	 	</ul>
	</div>

 </div>
 {else}
 <!-- step2 content -->
 	<!-- 对应的微博账号信息 -->
 	<div class="container_24">
		<div class="panel clearfix box mt_20">
			<div class="grid_16 omega pt_10 pb_20 ">
				<div class="prefix_1 suffix_1 border_r_c clearfix">
				 	<form action="{$basic_url}?do={$do}&task_id={$task_id}&op=work_hand&platform={$platform}&step=2" method="post">
				 	<input type="hidden" name="domain" value="{$weibo_arr['repost_user']['screen_name']}" />
				 	<input type="hidden" name="nickname" value="{$weibo_arr['repost_user']['name']}" />
				 	<input type="hidden" name="at_num" value="{$task_info['at_num']}" id="at_num"/>
				 	<input type="hidden" name="repost_data" value="{$weibo_arr['content']}" />
				 	<input type="hidden" name="repost_img" value="{$weibo_arr['content_img']}" />
					 	<ul class="clearfix">
					 		<li>
					 			<h2>{$_lang['task_require']}</h2>
								<div class="t_i">{$weibo_arr['reqiure']}</div>
							</li>
					 		<!-- 要发布或者要转发的微博内容 -->
					 		<li>
								<h2>{$_lang['weibo_content']}</h2>
								<div class="t_i">{$weibo_arr['content']}</div>
					 			{if $weibo_arr['content_img']}
					 				<img class="bord_c" src="{$weibo_arr['content_img']}" height="300px;" />
								{/if}<!-- 是否有对应的图片 -->
					 		</li>
					 	</ul>
						{if $task_info['is_repost']==1 || $task_info['is_at']== 1}
				 			<div class="clearfix">
				 				<h2>{$weibo_arr['tips']}{$_lang['to_weibo']}</h2>
				 				<textarea id="repost" name="repost" onkeydown="checkInner(this,140,event)" msgarea="msg_content" limit="require:true" style="width:500px;height:80px;"></textarea>
				 				<div id="length_show"></div><!-- 长度限制提示区域 -->
				 				<div id="msg_content"></div><!-- 错误提示区域 -->
				 			</div>
				 		{/if}
				 		{if $task_info['is_at']==1}
					 		<div class="mb_10 clearfix">
					 			@{$_lang['the_following_few_friends']}{$_lang['zh_mh']}
					 			{loop $weibo_arr['user_fans'] $value}
					 				<ul class="ml_20">
					 					<li class="fl_l mr_10" style="width:120px;">
					 						<a href="javascript:void(0);" onclick="return add_me('{$value['name']}');" style="margin-right:2px;">@{$value['name']}</a>
					 					</li>
					 				</ul>
									
					 			{/loop}
					 		</div>
				 		{/if}
				 		{if $task_info['is_repost']==1 && $task_info['is_comment']==1}
					 		<div class="mb_10">
					 			<h2>{$_lang['comment_original_content']}</h2>
					 			<textarea name="comment" style="width:500px;height:100px;"></textarea>
					 		</div>
				 		{/if}
				 		<button name="sbt" type="submit" class="big button" value="{$_lang['release']}"><span class="icon check"></span>{$_lang['release']}</button>
				 	</form>
				</div>	
			</div>		
		
			<div class="grid_8 alpha omega pt_10 ">
				<div class="clearfix  pad10 f2f2 bord_c ml_20 t_c">
					<a href="{$weibo_arr['user_info']['url']}"  class="fl_l mr_10">
					{if $weibo_arr['user_info']['img']}
						<img class="pic_small" src="{$weibo_arr['user_info']['img']}" alt=''/>
						{else}
						<img class="pic_small" src="http://mat1.gtimg.com/www/mb/images/head_120.jpg" alt=''/>
						
						{/if}
						
						
						
					</a>
					<!-- 头像 -->
					<h2 class="fl_l">
					
						<a href="{$weibo_arr[user_info][url]}"><span>{$_lang['nickname']}{$_lang['zh_mh']}</span>{$weibo_arr['user_info']['name']}</a>
						
						
					</h2>
					<div><a href="{$basic_url}?do=task&id={$task_id}&platform={$platform}&op=work_hand&step=2&relog=relog">{$_lang['switch_user_login']}</a></div>
				</div>	
			</div>	
		</div>
	</div>
{/if}
<script type="text/javascript">
	function add_me(name){
		var repost_val = $("#repost").val();
		var   s = 	"@"+name+' ';
		var a = repost_val.match(s);
		if(a){
			 showDialog("{$_lang['not_repeat_the_same_people']}");
			 return false;
		}
		$("#repost").val($("#repost").val()+"@"+name+' ');
		return false;
	}
</script>
 <script src="resource/js/uploadify/jquery.uploadify-3.1.min.js" type="text/javascript"></script>
<link href="resource/js/uploadify/uploadify.css" rel="stylesheet">
<!--{template footer}-->